// routes.ts
export const constantRoute = [
    {
        path: "/",
        redirect: "/login", // 添加这一行
    },
    {
        path: "/login",
        component: () => import("@/views/login/index.vue"),
        name: "login",
        meta: {
            title: "登录",
            hidden: true, // 路由标题在菜单中是否隐藏
            icon: "Promotion", //菜单文字左侧的图标,支持element-plus全部图标
        }
    },
    {
        path: "/home",
        // @ts-ignore
        component: () => import("@/layout/index.vue"),
        name: "layout",
        meta: {
            title: "首页",
            hidden: false,
            icon: "Lock",
        },
        children: [
            {
                path: "/home",
                component: () => import("@/views/home/index.vue"),
                name: "home",
                meta: {
                    title: "上传视频",
                    hidden: false,
                    icon: "HomeFilled",
                },
            }
        ]
    },
    // 其他路由配置...

    {
        path: "/queryTheVideo",
        component: () => import("@/layout/index.vue"),
        name: "queryTheVideo",
        meta: {
            title: "查询视频",
            icon: "Lock",
            hidden: false
        },
        children: [
            {
                path: "/queryTheVideo",
                component: () => import("@/views/queryTheVideo/queryTheVideo.vue"),
                name: "queryTheVideo",
                meta: {
                    title: "查询视频",
                    icon: "HomeFilled",
                    hidden: false
                },
            }
        ],
    },
    {
        path: "/analyzeTheVideo",
        component: () => import("@/layout/index.vue"),
        name: "analyzeTheVideo",
        meta: {
            title: "视频列表",
            icon: "Lock",
            hidden: false
        },
        children: [
            {
                path: "/analyzeTheVideo",
                component: () => import("@/views/analyzeTheVideo/analyzeTheVideo.vue"),
                name: "analyzeTheVideo",
                meta: {
                    title: "视频列表",
                    icon: "HomeFilled",
                    hidden: false
                },
            }
        ],
    },
    {
        path: "/Inquire",
        component: () => import("@/layout/index.vue"),
        name: "Inquire",
        meta: {
            title: "作品类型查询",
            icon: "Lock",
            hidden: false
        },
        children: [
            {
                path: "/Inquire",
                component: () => import("@/views/Inquire/Inquire.vue"),
                name: "Inquire",
                meta: {
                    title: "作品类型查询",
                    icon: "HomeFilled",
                    hidden: false
                },
            }
        ],
    },
    {
        path: "/aListOfTypes",
        component: () => import("@/layout/index.vue"),
        name: "aListOfTypes",
        meta: {
            title: "类型列表",
            icon: "Lock",
            hidden: false
        },
        children: [
            {
                path: "/aListOfTypes",
                component: () => import("@/views/aListOfTypes/aListOfTypes.vue"),
                name: "aListOfTypes",
                meta: {
                    title: "类型列表",
                    icon: "HomeFilled",
                    hidden: false
                },
            }
        ],
    },
    {
        path: "/muddyInquiry",
        component: () => import("@/layout/index.vue"),
        name: "muddyInquiry",
        meta: {
            title: "泥料类型查询",
            icon: "Lock",
            hidden: false
        },
        children: [
            {
                path: "/muddyInquiry",
                component: () => import("@/views/muddyInquiry/muddyInquiry.vue"),
                name: "muddyInquiry",
                meta: {
                    title: "泥料类型查询",
                    icon: "HomeFilled",
                    hidden: false
                },
            }
        ],
    },
    // {
    //     path: "/removeVideoWatermark",
    //     component: () => import("@/layout/index.vue"),
    //     name: "removeVideoWatermark",
    //     meta: {
    //         title: "视频去水印",
    //         icon: "Lock",
    //         hidden: false
    //     },
    //     children: [
    //         {
    //             path: "/removeVideoWatermark",
    //             component: () => import("@/views/removeVideoWatermark/removeVideoWatermark.vue"),
    //             name: "removeVideoWatermark",
    //             meta: {
    //                 title: "视频去水印",
    //                 icon: "HomeFilled",
    //                 hidden: false
    //             },
    //         }
    //     ],
    // },
    {
        path: "/404",
        component: () => import("@/views/404/index.vue"),
        name: "404",
        meta: {
            title: "404",
            hidden: true,
            icon: "DocumentDelete",
        },
    },
    {
        path: "/:pathMatch(.*)*",
        redirect: "/404",
        name: "Any",
        meta: {
            title: "任意路由",
            hidden: true,
            icon: "DataLine",
        },
    },
];
